package org.yscz.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.yscz.entity.Factor;
import org.yscz.entity.Option;

import java.util.List;

/**
 * 数据层：因子表
 * @author achen
 * @create 2021-10-11 15:33
 */
public interface FactorMapper extends BaseMapper<Factor> {

    /**
     * 添加因子
     * @param factor 因子对象
     */
    void addFactor(@Param("factor")Factor factor);

    /**
     * 根据量表Id查询题目，根据题目查询对应因子
     * @return
     */
    List<Factor> selectFactorByScaleId(@Param("scaleId")Long scaleId);

}
